package com.felix.webmagic.controller;import com.felix.common.ResultBean;import com.felix.webmagic.Service.BlogService;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;@RestController@RequestMapping(value = "sinaBlogSpider")public class SinaBlogSpiderController {    @Autowired    BlogService blogService;    @RequestMapping(value = "/getSinaBlog.do")    public ResultBean getSinaBlog(){        return new ResultBean(blogService.spiderAndSaveBlogs());    }}